package com.tuoren.forward.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Date;
import lombok.Data;

@Data
@Schema(description = "操作日志")
public class Log {
    @Schema(description = "ID")
    private String id;

    @Schema(description = "操作人IP")
    private String ip;

    @Schema(description = "操作人ID")
    private String userid;

    @Schema(description = "操作人名字")
    private String username;

    @Schema(description = "操作模块")
    private String module;

    @Schema(description = "操作功能")
    private String operation;

    @Schema(description = "调用方法")
    private String method;

    @Schema(description = "操作结果，0:成功,1:失败,2:异常")
    private String status;

    @Schema(description = "请求路径")
    private String url;

    @Schema(description = "请求方式")
    private String style;

    @Schema(description = "请求参数")
    private String param;

    @Schema(description = "请求负载")
    private String body;

    @Schema(description = "操作结果")
    private String result;

    @Schema(description = "耗时,单位:ms")
    private String waste;

    @Schema(description = "创建时间")
    private Date createtime;
}